import java.sql.Connection;
import java.sql.SQLException;

public class DBUtilTest {
    public static void main(String[] args) {
        try (Connection conn = DBUtil.getConnection()) {
            System.out.println("连接成功: " + conn);
        } catch (SQLException e) {
            e.printStackTrace();
            System.err.println("连接失败: ");
        }
    }
}